// 上传文件通用接口
import { instances } from 'element-plus/es/components/message/src/instance.mjs';
import instance from '../utils/request.js'

// 上传文件或头像
export const upload = (file) => {
    const formData = new FormData()
    formData.append('file',file)
    const config = {
        headers: {
            'Content-Type': multipart/form-data
        }
    }
    return instance.post('/other/upload',formData,config)

}